package org.example.printexercise;

public class ChatMessage {
    public static final int TYPE_OTHER = 0;
    public static final int TYPE_ME = 1;

    private int type;
    private String content;
    private String coloredContent;
    private int errorCount;

    public ChatMessage(int type, String content) {
        this.type = type;
        this.content = content;
        this.coloredContent = content;
        this.errorCount = 0;
    }

    public ChatMessage(int type, String content, String coloredContent, int errorCount) {
        this.type = type;
        this.content = content;
        this.coloredContent = coloredContent;
        this.errorCount = errorCount;
    }

    public int getType() { return type; }
    public void setType(int type) { this.type = type; }

    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }

    public String getColoredContent() { return coloredContent; }
    public void setColoredContent(String coloredContent) { this.coloredContent = coloredContent; }

    public int getErrorCount() { return errorCount; }
    public void setErrorCount(int errorCount) { this.errorCount = errorCount; }
}